<template>
  <view class="save-button">
    <button :disabled="disabled" type="primary" @click="handleClick">确定</button>
  </view>
</template>

<script>
export default {
  props: {
    disabled: {
      type: Boolean,
      default: () => false
    }
  },
  methods: {
    handleClick() {
      this.$emit("click");
    }
  }
};
</script>

<style scoped lang="scss">
$padding: 10rpx;
.save-button {
  position: fixed;
  bottom: $padding;
  left: $padding;
  right: $padding;
  z-index: 9999;
  // width: 100%;
}
</style>
